package com.sunntry.lspublicsystemhub.controller;

import com.sunntry.lspublicsystemhub.domain.LSHomeBean;
import com.sunntry.lspublicsystemhub.request.LSHttpApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import retrofit2.Response;
import sun.rmi.runtime.Log;

import java.util.logging.Logger;


@RestController
public class LSController {

    @Autowired
    LSHttpApi lsHttpApi;

    /**
     * 增加一个备注
     * @return
     */
    @PostMapping("/index")
    @ResponseBody
    public Response<LSHomeBean> index(@RequestBody String callback) {
        System.out.println("现在来到请求里面了");
        System.out.println(lsHttpApi.user(callback));
      return lsHttpApi.user(callback);
    };

    /**
     * 有添加一个注释
     * @return
     */
    @RequestMapping("/main")
    @ResponseBody
    public String main(){
        return "成功";
    };


}
